package github.ziwukun.jsonql.analysis;

import github.ziwukun.jsonql.lang.JSONQL;
import github.ziwukun.jsonql.orm.Model;

public class ModelAndFromAnalysistor implements ModelAndQLAnalysistor{
	
	@Override
	public void analysis(Model model, JSONQL ql) throws AnalysisException {
		if(!model.modelName().equals(ql.from())) {
			throw new AnalysisException("模型名称和JSONQL不一致");
		}
	}
}
